package com.bjpowernode.common.enums;

public enum Code {
    SUCC(999,"请求成功!"),
    FAIL(1000,"请稍后重试"),
    PHONE_FORMAT_ERR(1001,"手机号格式错误!!"),
    PHONE_HAS_REGISTED(1002,"手机号已被注册,请登录"),
    SMS_CODE_INVALID(1003,"验证码无效111"),
    PHONE_NO_REGISTED(1004,"手机号没有注册"),
    REQUEST_PARAM_ERR(1005,"请求数据错误"),
    USER_LOGIN_ERR(1006,"手机号或密码错误"),
    TOKEN_INVALID(1007,"请重新登录"),
    REALNAME_NOT_DOUBLE(1008,"不能重复认证"),
    USER_NOT_EXSITS(1009,"用户不存在"),
    REALNAME_ERR(10010,"实名认证失败"),
    ACCOUNT_NOT_EXSITS(10011,"资金账户错误"),
    ACCOUNT_MONEY_NOT(10012,"资金账户不足"),
    PEODUCT_NOT(10013,"产品不存在"),
    PEODUCT_LERT_NOT(10014,"资金可投资余额不足"),
    BID_MONEY_RANGE_ERR(10015,"投资金额不在范围"),
    REQUIRED_REALNAME(10016,"实名认证失败."),
    PAY_ORDER_NO_EXISTS(10017,"充值订单不存在"),
    PAY_ORDER_HAS_DD(10018,"充值已完成"),
    PAY_ORDER_MONEY_DIFF(10019,"充值金额不一致"),
    FILE_SIZE_LIMIT_MAX(10019,"头像不合规格,请重新上传"),
    FILE_SIZE_TYPE_INVALID(10019,"头像不被允许,请重新上传"),
    FILE_WIDTH_HEIGHT_INVALID(10019,"头像尺寸不大于300*300,请重新上传"),
    ;

    private int code;

    private String msg;

    Code(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
